<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Mr.Bao
  Date: 2021/11/17
  Time: 15:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>
        <c:if test="${book.book_id !=null}">修改书籍信息</c:if>
        <c:if test="${book.book_id ==null}">添加书籍信息</c:if>
    </title>
    <style>
        input{
            margin: 5px;
        }
    </style>
</head>
<body>
    <h1>
        <c:if test="${book.book_id !=null}">修改书籍信息</c:if>
        <c:if test="${book.book_id ==null}">添加书籍信息</c:if>
    </h1>
    <hr>
    <div style="position: relative;left: 50%;top: 50%;width: 400px;transform: translate(-50%,-50%);">
        <form method="post" action="${pageContext.request.contextPath}/book/addOrUpdate/${book.book_id}">
            图书名 | <input type="text" value="${book.book_name}" name="book_name"> <br>
            藏书量 | <input type="text" value="${book.book_counts}" name="book_counts"> <br>
            备注项 | <input type="text" value="${book.detail}" name="detail"> <br>
            <input style="width: 232px" type="submit" value="提交">
        </form>
    </div>

</body>
</html>
